﻿namespace PropertyManagementSystemAPI.Common.TreeTable
{
    public class TreeList
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int id { get; set; }

        /// <summary>
        /// 组织机构编号
        /// </summary>
        public string code { get; set; }

        /// <summary>
        /// 组织机构名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public int? pid { get; set; }

        /// <summary>
        /// 描述 0：总公司  1：分公司  2：部门
        /// </summary>
        public int? type { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? createdate { get; set; }

        /// <summary>
        /// 是否有子集
        /// </summary>
        public bool isParent { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<object> children { get; set; }

        /// <summary>
        /// url
        /// </summary>
        public string url { get; set; }

        /// <summary>
        /// icon
        /// </summary>
        public string icon {  get; set; }

        /// <summary>
        /// 默认选中
        /// </summary>
        public bool ELE_CHECKED {  get; set; }
    }
}
